package com.devshephard.design.extend;


import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.logging.Logger;


@Controller
@RequestMapping("/api")
public class ControllerDemo extends BasicController{


    @Autowired
    Son son;

    @Autowired
    Girl girl;

    @GetMapping ("/postTest")
    @ResponseBody
    public String postTest(){
        request.getRequestURI();
        request.getRequestURI();
        return "postTest "+request.getRequestURI() ;
    }


    @GetMapping("/extendsDemo")
    @ResponseBody
    public String extendsDemo(){

      return girl.isHuman();

    }

}
